<#-- 销售统计 -->
<#include "../template/template_listPage.ftl">
<@header title="销量统计">
<script type="text/javascript" src="${web_static}/My97DatePicker/WdatePicker.js"></script>
<style type="text/css">
    .table {
        padding: 1px;
        text-align: center;
    }
</style>
<script type="text/javascript">
    function query() {
        $('#listForm').submit();
    }
</script>
</@header>
<body class="list">
<div class="body">
    <div class="listBar">
        <h1><span class="icon">&nbsp;</span>您当前的位置:&nbsp;<span class="pageInfo">[库存卡销量统计]</span></h1>
    </div>
<@pageList page=page id="listForm" action="" query="statisticsQuery" isEmpty=true>
    <div class="operateBar">
        <label>订单时间:</label>
        <input type="text" name="orderDate" value="${orderDate}" onclick="WdatePicker({readOnly:true})" id="cardTime"
               class="Wdate"/>
        <button type="submit">查询</button>
    </div>
    <table class="listTable">
        <tr>
            <th><span class="sort">序号</span></th>
            <th><span class="sort">产品名称</span></th>
            <th><span class="sort">销量</span></th>
        </tr>
        <#if page.list??>
            <#list page.list as obj>
                <tr>
                    <td>${obj_index+page.pageSize*(page.currentPage-1)+1}</td>
                    <td>${obj.cardName!}</td>
                    <td>${obj.cardNumber!}</td>
                </tr>
            </#list>
        </#if>
    </table>
</@pageList>
</div>
</body>
</html>